import { pubRequire } from '@utils/public'
const baseUrl = '/contents'
// 获取配置标签列表
export function add(contentId, obj, callBack, errBack) {
  return pubRequire(
    'post',
    `${baseUrl}/${contentId}/labels`,
    obj,
    callBack,
    errBack
  )
}
// 移除内容上的标签
export function del(contentId, labelId, obj, callBack, errBack) {
  return pubRequire(
    'delete',
    `${baseUrl}/${contentId}/labels/${labelId}`,
    obj,
    callBack,
    errBack
  )
}
// 获取隐性标签下拉列表
export function getList(obj, callBack, errBack) {
  return pubRequire(
    'get',
    `/content/labels/recommends/options`,
    obj,
    callBack,
    errBack
  )
}
